const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  deviceId: state => state.app.deviceId,
  // 快捷导航栏
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  //
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userName: state => state.user.userName,
  deps: state => state.user.deps,
  defDepId: state => state.user.defDepId,
  menus: state => state.menu.permissionRouters, // 为了简化名称，起了个别名
  permissionRouters: state => state.menu.permissionRouters,
  buttonPermission: state => state.menu.buttonPermission
}
export default getters
